package com.ruoyi.app.dyh.hxf.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class Organization extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * $column.columnComment
     */

    @Excel(name = "组织id")
    private Long teamId;

    @Excel(name = "领导id")
    private Long leaderId;

    @Excel(name = "组织名")
    private String teamName;

    @Excel(name = "简介")
    @NotBlank(message = "简介不能为空")
    @Size(max = 500, message = "组织简介不能超过64个字符")
    private String teamInfo;

    @Excel(name = "组织类型（1服务队，2暖心团）")
    private Integer type;

    @Excel(name = "是否成立（0未成立，1成立）")
    private Integer isSet;

    @Excel(name = "组织照片")
    private String imgUrl;

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String photo) {
        this.imgUrl = photo;
    }

    public Long getTeamId() {
        return teamId;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }

    public Long getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(Long leaderId) {
        this.leaderId = leaderId;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getTeamInfo() {
        return teamInfo;
    }

    public void setTeamInfo(String teamInfo) {
        this.teamInfo = teamInfo;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIsSet() {
        return isSet;
    }

    public void setIsSet(Integer isSet) {
        this.isSet = isSet;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("teamId", getTeamId())
                .append("leaderId", getLeaderId())
                .append("teamName", getTeamId())
                .append("teamInfo", getTeamInfo())
                .append("type", getType())
                .append("isSet", getIsSet())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("isDelete", getIsDelete())
                .append("remark", getRemark())
                .append("imgUrl", getImgUrl())
                .toString();
    }
}
